﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QzgfFrame.Utility.Core.Import
{
    class ImportFactory
    {
        public static ImportFacade GetInstance(String type)
        {
            ImportFacade import = null;
            if (type == null)
            {
                return null;
            }
            else if (type.Equals("xls"))
            {
                import = new ImportFromPoiExcel();
            }
            else if (type.Equals("htmlxls"))
            {
                // import = new ExportToHtmlExcel();

            }
            else if (type.Equals("xml"))
            {
                //  import = new ExportToXml();
            }
            else if (type.Equals("pdf"))
            {
                //暂未实现
            }

            return import;
        }
    }
}
